package jsu.blogger.service.inter;

import jsu.blogger.pojo.Draft;
import jsu.blogger.pojo.Result;

import java.util.List;
import java.util.Map;

public interface DraftService {
    boolean exists(String draftId);
    void  insertDraft(Draft draft);
    void deleteDraft(String draftId);
    Draft getDraftById(String draftId);
    Draft findAllById(String draftId);
    Draft getDraftTitleAndContentById(String draftId);
    Draft getDraftOtherDetailsById(String draftId);
    boolean checkDraftExists(String draftId, Long userId, Long postId);
    void updateDraft(Draft draft);
    void updateDraftTags(String draftId, List<String> newTagNames);
    Result saveDraft(Draft newDraft, Map<String, Object> requestBody);
    void updateHotTopics(long postId);
    List<Draft> selectDraftsByUserId( Long userId, long limit, long offset);
    boolean deleteDraft(Long userId, String draftId);
}
